package com.demo.service.impl;

import com.demo.dao.Student;
import com.demo.mapper.StudentMapper;
import com.demo.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentMapper studentMapper;

    @Override
    public Student getStuByNo(String sid) {
        return studentMapper.getStudentByNo(sid);
    }

    @Override
    public String getClassIdById(int sid) {
        return studentMapper.getClassIdById(sid);
    }

    @Override
    public List<String> getAllClass() {
        return studentMapper.getAllClass();
    }


}
